home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / E-G / Financial Portfolio v1.8.cpt / Financial Portfolio v1.8 / background_5133.xml < prev    next >
Extensible Markup Language  |  1991-09-30  |  14KB  |  363 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE background PUBLIC "-//Apple, Inc.//DTD background V 2.0//EN" "" >
  3. <background>
  4.     <id>5133</id>
  5.     <filler1>0</filler1>
  6.     <bitmap>BMAP_5444.pbm</bitmap>
  7.     <cantDelete> <true /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <true /> </dontSearch>
  10.     <link rel="stylesheet" type="text/css" href="stylesheet_3246.css" />
  11.     <part>
  12.         <id>1</id>
  13.         <type>field</type>
  14.         <visible> <true /> </visible>
  15.         <dontWrap> <false /> </dontWrap>
  16.         <dontSearch> <false /> </dontSearch>
  17.         <sharedText> <false /> </sharedText>
  18.         <fixedLineHeight> <false /> </fixedLineHeight>
  19.         <autoTab> <false /> </autoTab>
  20.         <lockText> <true /> </lockText>
  21.         <rect>
  22.             <left>151</left>
  23.             <top>41</top>
  24.             <right>441</right>
  25.             <bottom>60</bottom>
  26.         </rect>
  27.         <style>rectangle</style>
  28.         <autoSelect> <false /> </autoSelect>
  29.         <showLines> <false /> </showLines>
  30.         <wideMargins> <false /> </wideMargins>
  31.         <multipleLines> <false /> </multipleLines>
  32.         <reservedFamily> 0 </reservedFamily>
  33.         <titleWidth>0</titleWidth>
  34.         <icon>0</icon>
  35.         <textAlign>center</textAlign>
  36.         <font>Chicago</font>
  37.         <textSize>12</textSize>
  38.         <textStyle>plain</textStyle>
  39.         <textHeight>16</textHeight>
  40.         <name>Stock</name>
  41.         <script></script>
  42.     </part>
  43.     <part>
  44.         <id>2</id>
  45.         <type>field</type>
  46.         <visible> <true /> </visible>
  47.         <dontWrap> <false /> </dontWrap>
  48.         <dontSearch> <false /> </dontSearch>
  49.         <sharedText> <false /> </sharedText>
  50.         <fixedLineHeight> <true /> </fixedLineHeight>
  51.         <autoTab> <false /> </autoTab>
  52.         <lockText> <true /> </lockText>
  53.         <rect>
  54.             <left>75</left>
  55.             <top>74</top>
  56.             <right>173</right>
  57.             <bottom>246</bottom>
  58.         </rect>
  59.         <style>transparent</style>
  60.         <autoSelect> <false /> </autoSelect>
  61.         <showLines> <false /> </showLines>
  62.         <wideMargins> <false /> </wideMargins>
  63.         <multipleLines> <false /> </multipleLines>
  64.         <reservedFamily> 0 </reservedFamily>
  65.         <titleWidth>0</titleWidth>
  66.         <icon>0</icon>
  67.         <textAlign>right</textAlign>
  68.         <font>Chicago</font>
  69.         <textSize>12</textSize>
  70.         <textStyle>plain</textStyle>
  71.         <textHeight>24</textHeight>
  72.         <name>intro</name>
  73.         <script></script>
  74.     </part>
  75.     <part>
  76.         <id>3</id>
  77.         <type>field</type>
  78.         <visible> <true /> </visible>
  79.         <dontWrap> <false /> </dontWrap>
  80.         <dontSearch> <false /> </dontSearch>
  81.         <sharedText> <false /> </sharedText>
  82.         <fixedLineHeight> <true /> </fixedLineHeight>
  83.         <autoTab> <false /> </autoTab>
  84.         <lockText> <false /> </lockText>
  85.         <rect>
  86.             <left>176</left>
  87.             <top>73</top>
  88.             <right>266</right>
  89.             <bottom>100</bottom>
  90.         </rect>
  91.         <style>rectangle</style>
  92.         <autoSelect> <false /> </autoSelect>
  93.         <showLines> <false /> </showLines>
  94.         <wideMargins> <false /> </wideMargins>
  95.         <multipleLines> <false /> </multipleLines>
  96.         <reservedFamily> 0 </reservedFamily>
  97.         <titleWidth>0</titleWidth>
  98.         <icon>0</icon>
  99.         <textAlign>left</textAlign>
  100.         <font>Chicago</font>
  101.         <textSize>12</textSize>
  102.         <textStyle>plain</textStyle>
  103.         <textHeight>24</textHeight>
  104.         <name>date</name>
  105.         <script></script>
  106.     </part>
  107.     <part>
  108.         <id>4</id>
  109.         <type>field</type>
  110.         <visible> <true /> </visible>
  111.         <dontWrap> <false /> </dontWrap>
  112.         <dontSearch> <false /> </dontSearch>
  113.         <sharedText> <false /> </sharedText>
  114.         <fixedLineHeight> <true /> </fixedLineHeight>
  115.         <autoTab> <false /> </autoTab>
  116.         <lockText> <false /> </lockText>
  117.         <rect>
  118.             <left>176</left>
  119.             <top>98</top>
  120.             <right>266</right>
  121.             <bottom>125</bottom>
  122.         </rect>
  123.         <style>rectangle</style>
  124.         <autoSelect> <false /> </autoSelect>
  125.         <showLines> <false /> </showLines>
  126.         <wideMargins> <false /> </wideMargins>
  127.         <multipleLines> <false /> </multipleLines>
  128.         <reservedFamily> 0 </reservedFamily>
  129.         <titleWidth>0</titleWidth>
  130.         <icon>0</icon>
  131.         <textAlign>left</textAlign>
  132.         <font>Chicago</font>
  133.         <textSize>12</textSize>
  134.         <textStyle>plain</textStyle>
  135.         <textHeight>24</textHeight>
  136.         <name>shares</name>
  137.         <script>on closeFieldif field "price" is empty then exit closeFieldput field "shares" into sput field "price" into pif first char of p is "$" then put empty into first char of pset the numberformat to "0.00"put "$"&(s*p) into bg field "value"end closeField</script>
  138.     </part>
  139.     <part>
  140.         <id>5</id>
  141.         <type>field</type>
  142.         <visible> <true /> </visible>
  143.         <dontWrap> <false /> </dontWrap>
  144.         <dontSearch> <false /> </dontSearch>
  145.         <sharedText> <false /> </sharedText>
  146.         <fixedLineHeight> <true /> </fixedLineHeight>
  147.         <autoTab> <false /> </autoTab>
  148.         <lockText> <false /> </lockText>
  149.         <rect>
  150.             <left>176</left>
  151.             <top>121</top>
  152.             <right>266</right>
  153.             <bottom>148</bottom>
  154.         </rect>
  155.         <style>rectangle</style>
  156.         <autoSelect> <false /> </autoSelect>
  157.         <showLines> <false /> </showLines>
  158.         <wideMargins> <false /> </wideMargins>
  159.         <multipleLines> <false /> </multipleLines>
  160.         <reservedFamily> 0 </reservedFamily>
  161.         <titleWidth>0</titleWidth>
  162.         <icon>0</icon>
  163.         <textAlign>left</textAlign>
  164.         <font>Chicago</font>
  165.         <textSize>12</textSize>
  166.         <textStyle>plain</textStyle>
  167.         <textHeight>24</textHeight>
  168.         <name>price</name>
  169.         <script>on closeFieldif field "shares" is empty then exit closeFieldput field "shares" into sput field "price" into pput me into priceif first char of p is "$" then put empty into first char of pif first char of price is "$" then put empty into first char of priceset the numberformat to "0.000"add 0 to price -- to set numberformatput "$"&price into bg field "price" -- correct formatset the numberformat to "0.00"put "$"&(s*p) into bg field "value"end closeField</script>
  170.     </part>
  171.     <part>
  172.         <id>6</id>
  173.         <type>field</type>
  174.         <visible> <true /> </visible>
  175.         <dontWrap> <false /> </dontWrap>
  176.         <dontSearch> <false /> </dontSearch>
  177.         <sharedText> <false /> </sharedText>
  178.         <fixedLineHeight> <true /> </fixedLineHeight>
  179.         <autoTab> <false /> </autoTab>
  180.         <lockText> <true /> </lockText>
  181.         <rect>
  182.             <left>176</left>
  183.             <top>194</top>
  184.             <right>266</right>
  185.             <bottom>221</bottom>
  186.         </rect>
  187.         <style>rectangle</style>
  188.         <autoSelect> <false /> </autoSelect>
  189.         <showLines> <false /> </showLines>
  190.         <wideMargins> <false /> </wideMargins>
  191.         <multipleLines> <false /> </multipleLines>
  192.         <reservedFamily> 0 </reservedFamily>
  193.         <titleWidth>0</titleWidth>
  194.         <icon>0</icon>
  195.         <textAlign>left</textAlign>
  196.         <font>Chicago</font>
  197.         <textSize>12</textSize>
  198.         <textStyle>plain</textStyle>
  199.         <textHeight>24</textHeight>
  200.         <name>value</name>
  201.         <script></script>
  202.     </part>
  203.     <part>
  204.         <id>7</id>
  205.         <type>field</type>
  206.         <visible> <true /> </visible>
  207.         <dontWrap> <false /> </dontWrap>
  208.         <dontSearch> <false /> </dontSearch>
  209.         <sharedText> <false /> </sharedText>
  210.         <fixedLineHeight> <true /> </fixedLineHeight>
  211.         <autoTab> <false /> </autoTab>
  212.         <lockText> <false /> </lockText>
  213.         <rect>
  214.             <left>176</left>
  215.             <top>146</top>
  216.             <right>266</right>
  217.             <bottom>173</bottom>
  218.         </rect>
  219.         <style>rectangle</style>
  220.         <autoSelect> <false /> </autoSelect>
  221.         <showLines> <false /> </showLines>
  222.         <wideMargins> <false /> </wideMargins>
  223.         <multipleLines> <false /> </multipleLines>
  224.         <reservedFamily> 0 </reservedFamily>
  225.         <titleWidth>0</titleWidth>
  226.         <icon>0</icon>
  227.         <textAlign>left</textAlign>
  228.         <font>Chicago</font>
  229.         <textSize>12</textSize>
  230.         <textStyle>plain</textStyle>
  231.         <textHeight>24</textHeight>
  232.         <name>comm</name>
  233.         <script>on closeFieldput me into commif first char of comm is "$" then put empty into first char of commset the numberformat to "0.00"add 0 to comm -- to set numberformatput "$"&comm into bg field "comm" -- correct formatend closeField</script>
  234.     </part>
  235.     <part>
  236.         <id>8</id>
  237.         <type>button</type>
  238.         <visible> <true /> </visible>
  239.         <reserved5> 0 </reserved5>
  240.         <reserved4> 0 </reserved4>
  241.         <reserved3> 0 </reserved3>
  242.         <reserved2> 0 </reserved2>
  243.         <reserved1> 0 </reserved1>
  244.         <enabled> <true /> </enabled>
  245.         <rect>
  246.             <left>330</left>
  247.             <top>123</top>
  248.             <right>437</right>
  249.             <bottom>173</bottom>
  250.         </rect>
  251.         <style>roundrect</style>
  252.         <showName> <true /> </showName>
  253.         <highlight> <false /> </highlight>
  254.         <autoHighlight> <true /> </autoHighlight>
  255.         <sharedHighlight> <false /> </sharedHighlight>
  256.         <family>0</family>
  257.         <titleWidth>0</titleWidth>
  258.         <icon>0</icon>
  259.         <textAlign>center</textAlign>
  260.         <font>Chicago</font>
  261.         <textSize>12</textSize>
  262.         <textStyle>plain</textStyle>
  263.         <name>Okay</name>
  264.         <script>on mouseUpglobal transcheck,transcard,translinesend closeField to bg field "price" -- to ensure proper formatput empty into newnewset cursor to busyif field "type" is not "div" then -- with dividend, can leave blanksif field "type" is not "split" then -- with split, can leave blanksrepeat with x=3 to 7if field x is empty thenbeepanswer "You left something blank!"exit mouseUpend ifend repeatend ifend ifset cursor to busyput field type into typeput field date into dateput field shares into sharesput field price into priceput field comm into commput field value into valueif visible of bg button "erase" of cd "transaction" is false thenput "yes" into newnew -- buying a new stockend ifvisual barn door closeif transcheck is "y" then -- just checking/editinggo transcardput date into line transline of field "date"put type into line transline of field "type"put shares into line transline of field "shares"put price into line transline of field "price"put comm into line transline of field "comm"put value into line transline of field "value"put "n" into transcheckcountshares-- -- now, need to calculate new value-- put field "numshares" into n-- put field "currprice" into p-- set the numberformat to "0."-- put "$"&(p*n) into field "currval"lock screengo cd stockport -- to update new price after event-- don't lock messages, so it can update & calculatego transcardexit mouseUpend ifgo transcard -- to stock's cardput date into line (transline +1) of field "date"put type into line (transline +1) of field "type"put shares into line (transline +1) of field "shares"put price into line (transline +1) of field "price"put comm into line (transline +1) of field "comm"put value into line (transline +1) of field "value"-- now update max & minput strip("$",price) into ppif pp>line 1 of field "maxmin" then put pp into line 1 of field "maxmin"if pp<line 2 of field "maxmin" then put pp into line 2 of field "maxmin"put pp into field "currprice"if newnew is "yes" then -- brand new stockput strip("$",price) into line 1 of field "maxmin"put strip("$",price) into line 2 of field "maxmin"end ifcountshareslock screengo cd stockport -- to update new price after event-- don't lock messages, so it can update & calculatego transcardend mouseUp</script>
  265.     </part>
  266.     <part>
  267.         <id>9</id>
  268.         <type>button</type>
  269.         <visible> <true /> </visible>
  270.         <reserved5> 0 </reserved5>
  271.         <reserved4> 0 </reserved4>
  272.         <reserved3> 0 </reserved3>
  273.         <reserved2> 0 </reserved2>
  274.         <reserved1> 0 </reserved1>
  275.         <enabled> <true /> </enabled>
  276.         <rect>
  277.             <left>344</left>
  278.             <top>85</top>
  279.             <right>418</right>
  280.             <bottom>104</bottom>
  281.         </rect>
  282.         <style>roundrect</style>
  283.         <showName> <true /> </showName>
  284.         <highlight> <false /> </highlight>
  285.         <autoHighlight> <true /> </autoHighlight>
  286.         <sharedHighlight> <false /> </sharedHighlight>
  287.         <family>0</family>
  288.         <titleWidth>0</titleWidth>
  289.         <icon>0</icon>
  290.         <textAlign>center</textAlign>
  291.         <font>Chicago</font>
  292.         <textSize>12</textSize>
  293.         <textStyle>plain</textStyle>
  294.         <name>cancel</name>
  295.         <script>on mouseUpglobal transcardvisual barn door closego transcardend mouseUp</script>
  296.     </part>
  297.     <part>
  298.         <id>10</id>
  299.         <type>field</type>
  300.         <visible> <true /> </visible>
  301.         <dontWrap> <false /> </dontWrap>
  302.         <dontSearch> <false /> </dontSearch>
  303.         <sharedText> <false /> </sharedText>
  304.         <fixedLineHeight> <false /> </fixedLineHeight>
  305.         <autoTab> <false /> </autoTab>
  306.         <lockText> <true /> </lockText>
  307.         <rect>
  308.             <left>91</left>
  309.             <top>41</top>
  310.             <right>139</right>
  311.             <bottom>60</bottom>
  312.         </rect>
  313.         <style>rectangle</style>
  314.         <autoSelect> <false /> </autoSelect>
  315.         <showLines> <false /> </showLines>
  316.         <wideMargins> <false /> </wideMargins>
  317.         <multipleLines> <false /> </multipleLines>
  318.         <reservedFamily> 0 </reservedFamily>
  319.         <titleWidth>0</titleWidth>
  320.         <icon>0</icon>
  321.         <textAlign>center</textAlign>
  322.         <font>Geneva</font>
  323.         <textSize>12</textSize>
  324.         <textStyle>plain</textStyle>
  325.         <textHeight>16</textHeight>
  326.         <name>type</name>
  327.         <script></script>
  328.     </part>
  329.     <part>
  330.         <id>11</id>
  331.         <type>button</type>
  332.         <visible> <true /> </visible>
  333.         <reserved5> 0 </reserved5>
  334.         <reserved4> 0 </reserved4>
  335.         <reserved3> 0 </reserved3>
  336.         <reserved2> 0 </reserved2>
  337.         <reserved1> 0 </reserved1>
  338.         <enabled> <true /> </enabled>
  339.         <rect>
  340.             <left>353</left>
  341.             <top>205</top>
  342.             <right>415</right>
  343.             <bottom>222</bottom>
  344.         </rect>
  345.         <style>roundrect</style>
  346.         <showName> <true /> </showName>
  347.         <highlight> <false /> </highlight>
  348.         <autoHighlight> <true /> </autoHighlight>
  349.         <sharedHighlight> <false /> </sharedHighlight>
  350.         <family>0</family>
  351.         <titleWidth>0</titleWidth>
  352.         <icon>0</icon>
  353.         <textAlign>center</textAlign>
  354.         <font>Chicago</font>
  355.         <textSize>12</textSize>
  356.         <textStyle>plain</textStyle>
  357.         <name>erase</name>
  358.         <script>on mouseUpanswer "This will totally erase this transaction from your records!" with "Erase" or "cancel"if it is empty then exit mouseUpif it is "cancel" then exit mouseUpglobal transcheck,transcard,translineif transcheck is "y" thengo transcarddelete line transline of field "date"delete line transline of field "type"delete line transline of field "shares"delete line transline of field "price"delete line transline of field "comm"delete line transline of field "value"put "n" into transcheckcountshares-- now, need to calculate new valueput field "numshares" into nput field "currprice" into pset the numberformat to "0."put "$"&(p*n) into field "currval"lock screengo cd stockport -- to recalculate thingsgo transcardanswer "Please double-check your share price below {click on it to change}."end ifend mouseUp</script>
  359.     </part>
  360.     <name>buy/sell</name>
  361.     <script></script>
  362. </background>
  363.